package kr.co.doriclassic.pro07_02;

import java.util.Scanner;

class Date {
	private int iYear;
	private int iMonth;
	private int iDay;
	private String sMonth;
	public Date(int iYear, int iMonth, int iDay) {
		this.iYear=iYear;
		this.iMonth=iMonth;
		this.iDay=iDay;
	}
	
	public void print1(){
		System.out.printf("%d.%d.%d%n",iYear,iMonth,iDay);
	}
	public void print2(){
		switch (iMonth) {
			case 1:
				sMonth="January";
				break;
			case 2:
				sMonth="Febuary";
				break;
			case 3:
				sMonth="March";
				break;
			case 4:
				sMonth="April";
				break;
			case 5:
				sMonth="May";
				break;
			case 6:
				sMonth="June";
				break;
			case 7:
				sMonth="July";
				break;
			case 8:
				sMonth="August";
				break;
			case 9:
				sMonth="September";
				break;
			case 10:
				sMonth="October";
				break;
			case 11:
				sMonth="November";
				break;
			case 12:
				sMonth="December";
				break;

			default:
				sMonth = " ";
				break;
		}
		System.out.printf("%s %d, %d%n",sMonth,iDay,iYear);
	}
	

}
public class Pro07_02{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int iY, iM, iD;
		
		System.out.print("년도 : ");
		iY=sc.nextInt();
		System.out.print("월   : ");
		iM=sc.nextInt();
		System.out.print("일   : ");
		iD=sc.nextInt();
		
		Date d = new Date(iY, iM, iD);
		d.print1();
		d.print2();
		
	}
}